package request

import (
	"gorm.io/gorm"
)

type Login struct {
	Username string `json:"username" binding:"required"` // 用户名
	Password string `json:"password" binding:"required"` // 密码
}

type PassWord struct {
	PassWord string `json:"password"`
}

type Id struct {
	Id uint `uri:"id" binding:"required,gt=0"`
}

type TeacherInfo struct {
	gorm.Model
	TeacherName           string   `json:"teacherName"`
	Gender                *bool    `json:"gender"`
	BirthDay              string   `json:"birthDay"`
	Email                 string   `json:"email"`
	PTitle                string   `json:"pTitle"`
	Resume                string   `json:"resume"`
	Avatar                string   `json:"avatar"`
	UserId                uint     `json:"userid"`
	TeacherTypeList       []string `json:"teacherType"`
	MajorNameList         []string `json:"majorName"`
	ResearchDirectionList []string `json:"researchDirection"`
}
